package com.fei.fpmall.service.basemanage;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import com.fei.fpmall.core.dto.ResponseModel;
import com.fei.fpmall.core.model.Page;
import com.fei.fpmall.entity.basemanage.User;
import com.fei.fpmall.entity.basemanage.UserdetailEntity;


/**
 * 
 * @author feilix
 * @date 2017-09-23 12:24:25
 */
public interface IUsersService {
	
	User queryObject(Integer uid);
	
	List<User> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);

	int save(User userInfo, UserdetailEntity userdetailInfo);

	int update(User feiUsers);

	int delete(Integer uid);
	
	void deleteBatch(Integer[] uids);
	
	
	/**
	 * 管理员用户名登录
	 * @param member
	 * @param request
	 * @return
	 */
	User manageLoginbyuserName(User member,HttpServletRequest request);
	
	/**
	 * 管理员手机号登录
	 * @param member
	 * @param request
	 * @return
	 */
	User manageLoginbyMobile(User member,HttpServletRequest request);
	
	/**
	 * 管理员邮箱登录
	 * @param member
	 * @param request
	 * @return
	 */
	User manageLoginbyEmail(User member,HttpServletRequest request);


	//通过条件查询用户
	User queryObjectByCondition(Map condition);

	//分页查询用户
	ResponseModel queryListByPage(Map<String, Object> condition, Page page);
}
